package com.atguigu.tingshu.enums.search;

public enum SortFieldType {

    // 综合排序
    DEFAULT("1", "hotScore"),

    // 播放量排序
    PLAYNUM("2", "playStatNum"),

    // 发布时间
    UPTIME("3", "createTime");

    private String code;

    private String field;

    SortFieldType(String code, String field) {
        this.code = code;
        this.field = field;
    }

    public String getCode() {
        return code;
    }

    public String getField() {
        return field;
    }
}
